package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.api.factory.RemoteActivityFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "remoteActivityService",value = ServiceNameConstants.SYSTEM_SERVICE,fallbackFactory = RemoteActivityFallbackFactory.class)
public interface RemoteActivityService {


    @GetMapping("/activity/activity/check")
    public AjaxResult checkInfo(@RequestParam("id") Long id, @RequestHeader(SecurityConstants.FROM_SOURCE)String source);


    @GetMapping("/activity/activity/indexHotCount")
    public AjaxResult indexHotCount(@RequestHeader(SecurityConstants.FROM_SOURCE)String source);


    @GetMapping(value = "/activity/activity/inner")
    public AjaxResult getInfoByInnerAuth(@RequestParam("id") Long id,@RequestHeader(SecurityConstants.FROM_SOURCE)String source);
}
